package com.itheima;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Repository;

@SpringBootApplication
public class SpringbootWebReqResqApplication {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebReqResqApplication.class, args);
    }

}
//ioc详解
//启动类里面有@ComponentScan包扫描注解
//默认范围是启动类所在包及其子包
//ioc和di都写里面
//Dao层注解@Repository以后很少用，mybatis整合mapper映射

//di详解
//万一有两个service的bean会报错，
// @Resource(name = "empServiceA")
// @Qualifier("empServiceA")
// @primary优先级写类上
